<?php
use yii\bootstrap\Nav;
use yii\helpers\Url;

?>

<?= Nav::widget(
[
    'options' => [
        'class' => 'nav-tabs',
        'style' => 'margin-bottom: 15px',
    ],
    'items' => [
        [
            'label' => 'Характеристики',
            'url' =>  ['furniture/view', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Местонахождение',
            //'visible' => \Yii::$app->user->can('dfdf'),
            'url' => ['/user/role/index'],
        ],
        [
            'label' => 'История перемещений',
            //'visible' => \Yii::$app->user->can('dfdf'),
            'url' => ['/user/role/index'],
        ],
        [
            'label' => 'Добавить на склад',
            //'visible' => \Yii::$app->user->can('dfdf'),
            'url' => ['/user/role/index'],
        ],
        [
            'label' => 'Переместить',
            //'visible' => \Yii::$app->user->can('dfdf'),
            'url' => ['/user/role/index'],
        ],
        [
            'label' => 'Редактировать',
            'visible' => \Yii::$app->user->can('updateFurniture'),
            'url' => ['furniture/update', 'id' => $this->params['id']],
        ],
    ],
]
) ?>

   